import request from '@/utils/request'
const preUrl = '/shopGoods'
export default {
    add(data) {
        return request({
            url: preUrl + `/add`,
            method: 'post',
            data: data
        })
    },
    get(shopId){
        return request({
            url: preUrl + `/get/${shopId}`,
            method: 'get',
        })
    },
    delete(id){
        return request({
            url: preUrl + `/deleteShop`,
            method: 'post',
            data: id
        })
    },
    setState(good){
        return request({
            url: preUrl + `/setState`,
            method: 'post',
            data: good
        })
    },
    getState(id){
        return request({
            url: preUrl + `/goodState`,
            method: 'post',
            data: id
        })
    },
    remove(data){
        return request({
            url: preUrl + `/delete`,
            method: 'delete',
            data: data
        })  
    },
    removes(data){
        return request({
            url: preUrl + `/deletes`,
            method: 'delete',
            data: data
        }) 
    }
}
